import request from '@/utils/request'

const url = 'http://192.168.10.100:9881/rabc'

export function fetchAllRoles(query) {
  return request({
    url: url + '/role/getAll',
    method: 'get',
    params: query
  })
}

// getAllInTreeNodeTemplate
export function getAllInTreeNodeTemplate() {
  return request({
    url: url + '/role/getAllInTreeNodeTemplate',
    method: 'get'
  })
}
